package com.loie.xcx.mapper;

import com.loie.xcx.model.bo.ItemBO;
import com.loie.xcx.model.bo.PermissionBO;
import com.loie.xcx.model.dto.QuotationQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhl
 */
public interface ItemMapper {
    ItemBO getItemById(String itemId);

    ItemBO getItemNoAndClassItemNoByRecordId(String recordId);

    int updateItemByQrCode(String recordId, byte[] qrCode);
    ItemBO getItemByIdandPermissions(@Param("list") List<PermissionBO> list, String itemNo);

    List<ItemBO> getItemByPermissionslist(@Param("list")List<PermissionBO> list, @Param("quotationQueryDTO") QuotationQueryDTO quotationQueryDTO);
}
